﻿using System.Collections.ObjectModel;
using Indigo.Quibbler.Data;

namespace Indigo.Quibbler.Controls
{
    public class SpiderControlCenterNode : SpiderControlBaseNode
    {
        public SpiderControlCenterNode(NewsArticle article) : base(article) { }
    }

    public class SpiderControlSearchCenterNode : SpiderControlBaseNode
    {
        public string SearchTerm { get; set; }
        public string SearchUrl { get; set; }

        public SpiderControlSearchCenterNode(string searchTerm) 
        {
            this.SearchTerm = searchTerm;
            this.SearchUrl = string.Format(System.Configuration.ConfigurationManager.AppSettings["SearchUrl"], searchTerm);
        }
        public SpiderControlSearchCenterNode(string message,string searchTerm)
        {
            this.SearchTerm = message;
            this.SearchUrl = string.Format(System.Configuration.ConfigurationManager.AppSettings["SearchUrl"], searchTerm);
        }
    }

    public class SpiderPhotoNode : SpiderControlBaseNode
    {
        public SpiderPhotoNode(NewsArticle article) : base(article) { }
    }

}
